<?php


namespace app\common\model;


class MessageIdempotence extends CommonModel
{
    protected $name = 'message_idempotence';

    public function setBodyAttr($v)
    {
        return json_encode($v);
    }

    public function getPropertiesAttr($v)
    {
        return json_decode($v, true);
    }

    public function setPropertiesAttr($v)
    {
        return json_encode($v);
    }

    public function getBodyAttr($v)
    {
        return json_decode($v, true);
    }
}